import request from '@/utils/request'

// 查询CDC配置列表
export function listCdcConf(query) {
  return request({
    url: '/console/cdcConf/list',
    method: 'get',
    params: query
  })
}

// 查询CDC配置详细
export function getCdcConf(id) {
  return request({
    url: '/console/cdcConf/' + id,
    method: 'get'
  })
}

// 新增CDC配置
export function addCdcConf(data) {
  return request({
    url: '/console/cdcConf',
    method: 'post',
    data: data
  })
}

// 修改CDC配置
export function updateCdcConf(data) {
  return request({
    url: '/console/cdcConf',
    method: 'put',
    data: data
  })
}

// 删除CDC配置
export function delCdcConf(id) {
  return request({
    url: '/console/cdcConf/' + id,
    method: 'delete'
  })
}
